import { post , get } from '@/utils/request'

export function login(data) {
  return post('/user/login', data)
}

export function getInfo(token) {
  return post('/user/info?token=' + token)
}

export function logout() {
  return post('/user/loginOut', {})
}

export function reg(data) {
  return post('/user/register', data)
}
export function getRegisterCode(userName){
  return get('/user/code/' + userName)
}

